package cn.snmp.mutual.org.bouncycastle.crypto.params;

import cn.snmp.mutual.org.bouncycastle.crypto.CipherParameters;

public class KeyParameter implements CipherParameters {
    private byte[] key;

    public KeyParameter(final byte[] key) {
        this(key, 0, key.length);
    }

    public KeyParameter(final byte[] key, final int keyOff, final int keyLen) {
        System.arraycopy(key, keyOff, this.key = new byte[keyLen], 0, keyLen);
    }

    public byte[] getKey() {
        return this.key;
    }
}
